//
//  ChatViewCell.h
//  BaiYing_Thinker
//
//  Created by 鹏 朱 on 15/11/4.
//  Copyright (c) 2015年 XKJH. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ChatViewCellFrame.h"
#import <NIAttributedLabel.h>

@class SessonContentMessage;

typedef void (^WebFinishLoadBlock)(NSString *,NSNumber *);
typedef void (^PictureDidSelectedBlock)(NSString *);

@interface ChatViewCell : UITableViewCell<NIAttributedLabelDelegate>

@property (nonatomic, strong) ChatViewCellFrame *cellFrame;
@property (nonatomic, strong) SessonContentMessage *message;
@property (nonatomic,copy) WebFinishLoadBlock webFinishLoadBlock;
@property (nonatomic,copy) PictureDidSelectedBlock pictureDidSelectedBlock;
//文字
@property (nonatomic, strong) NIAttributedLabel *textContent;
//图片
@property (nonatomic, strong) UIImageView *imageContent;
//网页插件
@property (nonatomic, strong) UIView *webContent;
//视频插件
@property (nonatomic, strong) UIView *videoContent;
//音频插件
@property (nonatomic, strong) UIView *audioContent;

@property (nonatomic, assign) DataModelType dataModelType;
@property (nonatomic, assign) CGSize webSize;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier dataModelType:(DataModelType)dataModelType webSize:(CGSize)webSize;

@end
